package com.example.activity;

import com.ab.view.listener.AbOnListViewListener;
import com.ab.view.pullview.AbPullListView;
import com.benchi.ncar.R;
import com.example.tools.Constants;
import com.example.tools.IsNetWork;
import com.lidroid.xutils.ViewUtils;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.widget.TextView;

public class MessageInfoActivity extends BaseActivity {
	private View mHeadView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		ViewUtils.inject(this);
		super.showWaitingDialog();
		init();
	}

	private void init() {
		super.mAbPullListView = (AbPullListView) findViewById(R.id.lv_main);
		webview = (WebView) findViewById(R.id.web_main);
		String url = getIntent().getStringExtra("url");
		if (url != null) {
			webview.loadUrl(url);
			super.initViews();
			super.initData();
		}
	}

	public static void skipMe(Context context, String url) {
		Intent intent = new Intent(context, MessageInfoActivity.class);
		intent.putExtra("url", url);
		context.startActivity(intent);
	}

}
